Ext.define('pages.test.Panel',{
	extend:'Ext.panel.Panel',
	constructor:function(config){
		config = config || {};
		Ext.apply(this,config);
		this.initUIComponent();
		var items = [];
		items.push(this.grid);
		Ext.applyIf(config,{
			layout:'fit',
			region:'center',
			closable : true,
			forceFit:true,
			items:items
		});
		this.callParent([config]);
	},
	initUIComponent:function(){
		var me = this;
		me.grid = Ext.create('pages.test.Grid');
		/*var win = Ext.create("Ext.Window",{
			title:"我的window",
			width:500,
			height:300,
			html:"hello world"
		});
		win.show();*/
	}
});